package com.twu.biblioteca;

import org.apache.commons.lang3.builder.*;

/**
 * Created by lauraionescu on 24/04/2014.
 */
public class User {

    private String login;
    private String password;
    private String name;
    private String address;
    private String telephone;

    public User(String login, String password, String name, String address, String telephone){
        this.login = login;
        this.password = password;
        this.name = name;
        this.address = address;
        this.telephone = telephone;
    }

    public String getUserDetails(){
        return this.name + ", " + this.address + ", " + this.telephone;
    }

    public String getPassword(){
        return password;
    }

    public String getLogin(){
        return login;
    }

    public int hashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }

    public boolean equals(Object obj) {
        return EqualsBuilder.reflectionEquals(this, obj);
    }


}
